package Demo1;


//https://www.nowcoder.com/questionTerminal/f0db4c36573d459cae44ac90b90c6212
//删除公共字符

import java.util.Scanner;

public class TestDemo2 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while(scanner.hasNext()){
            String str1 = scanner.nextLine();
            String str2 = scanner.nextLine();
            String pattern = "["+str2+"]";
            String result = str1.replaceAll(pattern,"");
            System.out.println(result);
        }

    }
}
